package com.wang.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Students {
    private String sname;
    private String ssex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sbirthday;
    private int pid;
    private String sgrade;
    private String school;
    private int sid;

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    public Date getSbirthday() {
        return sbirthday;
    }

    public void setSbirthday(Date sbirthday) {
        this.sbirthday = sbirthday;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getSgrade() {
        return sgrade;
    }

    public void setSgrade(String sgrade) {
        this.sgrade = sgrade;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    @Override
    public String toString() {
        return "Students{" +
                "sname='" + sname + '\'' +
                ", ssex='" + ssex + '\'' +
                ", sbirthday=" + sbirthday +
                ", pid=" + pid +
                ", sgrade='" + sgrade + '\'' +
                ", school='" + school + '\'' +
                ", sid=" + sid +
                '}';
    }
}
